//
//  MQTempViewController.swift
//  SinaWeiBo
//
//  Created by 毛强 on 16/1/13.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

class MQTempViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.blueColor()
        setupUI()
    }
    
    private func setupUI(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: "next")
        title = "第\(navigationController?.childViewControllers.count ?? 0)级控制器"
    }
    @objc private func next(){
        let vc = MQTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
